import Vue from 'vue'
import Home from './Home.vue'
import App from './App2.vue'
import VueResource from 'vue-resource'
import VueRouter from 'vue-router'
import Explorer from './Explorer.vue'
import Cart from './Cart.vue'
import Me from './Me.vue'
import dialog from './dialog.vue'


Vue.use(VueResource);
Vue.use(VueRouter);
const router=new VueRouter({
    mode:'history',
    base:__dirname,
    linkActiveClass:"active",
    routes:[
        {name:'home',path:'/',component:Home},
        {name:'category',path:'/explorer',component:Explorer},
        {name:'cart',path:'/cart',component:Cart},
        {name:'me',path:'/me',component:Me},
    ]
}
)
new Vue({
    //http: {root: "/", headers: {}},
    el: '#app',
    router,
    render: h => h(App)
})
